package com.c.elmer.util.string;

import java.io.File;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.PrintWriter;

public class Log { 
	public static		File logfile = null;
	public static		FileWriter fWriter = null;
	public static		PrintWriter pWriter = null;
		

	public static boolean writelog(String path,String msg){
		try{
			logfile = new File(path);
			fWriter = new FileWriter(logfile,true);
			pWriter = new PrintWriter(fWriter);
			
			pWriter.print(msg);
			pWriter.close();
			fWriter.close();
			
		}catch (Exception e) {
			e.printStackTrace();
			return false;
		}
		return true;
	}
}
